import myAxios from '../utils/request'

export function getSmsRequest (data) {
  return myAxios.request({
    method: 'post',
    url: '/getSms/',
    data
  })
}

export function registerRequest (data) {
  return myAxios.request({
    method: 'post',
    url: '/register/',
    data
  })
}

export function loginRequest (data) {
  return myAxios.request({
    method: 'post',
    url: '/login/',
    data
  })
}
export function logoutRequest (data = {}) {
  return myAxios.request({
    method: 'post',
    url: '/logout/',
    data
  })
}
